package com.heart.house.user.exception;

/**
 * @author Luo Zhen
 * @create 2019-10-29 17:47
 */
public class IllegalParamsException extends RuntimeException implements WithTypeException {

    private static final long serialVersionUID = 2969388842911004333L;

    private Type type;

    public IllegalParamsException(Type type, String msg) {
        super(msg);
        this.type = type;
    }

    public Type getType() {
        return type;
    }

    public enum Type {
        WRONG_PAGE_NUM, WRONG_TYPE
    }

}
